package com.pkk.spring.cloud.service.rpc.page;

import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Builder.Default;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 请求分页
 *
 * @author peikunkun
 * @version V1.0
 * @date 2021-01-06 14:25
 **/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Page implements Serializable {

  private static final long serialVersionUID = 4258277691730443710L;


  /**
   * 分页大小
   */
  @Default
  private int pageSize = 20;

  /**
   * 当前页
   */
  @Default
  private int pageIndex = 1;

  /**
   * order by column
   */
  private String sortName;

  /**
   * ASC or DESC
   */
  private String sortOrder;
}
